{{extend 'layout.html'}}

<h2 class="fancy">Welcome to PyForum</h2>

{{if view_info['errors']:}}
    <p class="err">There was one or more errors while processing your request, please correct the following</p>
    <ul>
        {{for error in view_info['errors']:}}
            <li class="err">{{=error}}</li>
        {{pass}}
    </ul>
{{pass}}

<form id="login">
    <fieldset id="login_form_fields">
        <input type="hidden" id="form_submitted" name="form_submitted" value="1" />
        <table cellspacing="2" cellpadding="1">
        <tbody>
            <tr>
                <td><span class="required">*</span> Email:</td>
                <td><input id="auth_email" name="auth_email" value="{{=request.vars.get('auth_email', '')}}" /></td>
            <tr>
                <td><span class="required">*</span> Password:</td>
                <td><input id="auth_passwd" name="auth_passwd" /></td>
            </tr>
        </tbody>
        </table>

        <p class="required">* - Required Field</p>

        <input type="submit" id="send_b" name="send_b" value="Login" />
        <input type="submit" id="cancel_b" name="cancel_b" value="Cancel" />

    </fieldset>
</form>
